public with sharing class GetValueFromWeiboConsole {        
        public String MobilePhone{get;set;}
        public String UserID{get;set;}
        public String User{get;set;}
        public String Source{get;set;}
        public String CreateDate{get;set;}
        public String Description{get;set;}
        public Lead lead {get;set;}
        public String CreatedAt {get;set;}
        public String mid {get;set;}
        

        public void GetValue(){                            
        MobilePhone = Apexpages.currentPage().getParameters().get('MobilePhone');    
            UserId = Apexpages.currentPage().getParameters().get('LastName');
            User = Apexpages.currentPage().getParameters().get('User');
            Source = Apexpages.currentPage().getParameters().get('source');
            CreateDate = Apexpages.currentPage().getParameters().get('createdAt');
            Description = Apexpages.currentPage().getParameters().get('Description');
            mid = Apexpages.currentPage().getParameters().get('mid');
           }
        
        
        public GetValueFromWeiboConsole(ApexPages.StandardController controller){
                GetValue();
                //Give value to lead object through Controller.getRecord() method.
                lead =  (Lead)controller.getRecord();
                lead.MobilePhone = MobilePhone;
                lead.LastName = UserID;
                lead.Description__c = Description;
                lead.UID__c = UserId;
                lead.Create_At__c = CreateDate;
                lead.Source__c = Source;
                lead.Company = '新浪微博';
                lead.M_ID__c = mid;
                
                
                

    }           
}